home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / setenv.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.2 KB  |  51 lines

  1. SETENV
  2.  
  3. Sets a global variable.
  4.  
  5. Format
  6.  
  7. SETENV [<name>] [<string...>]
  8.  
  9. Template
  10.  
  11. NAME,STRING/F
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. SETENV with no arguments lists the current global variables.
  18.  
  19. SETENV with <name> and <string> arguments creates a new global environment
  20. variable. The first word after SETENV is taken as the <name>. Everything else
  21. on the command line is taken as the <string> argument. Quotation marks are
  22. not required.
  23.  
  24. Global variables are stored in the ENV: directory and are available to all
  25. processes. However, if a local variable (defined by SET) and a global
  26. variable share the same name, the local variable is used.
  27.  
  28. Environment variables are called by scripts or other commands by including a
  29. dollar sign ($) in front of the variable name.
  30.  
  31. To remove a global variable definition, use the UNSETENV command.
  32.  
  33. Example 1:
  34.  
  35. 1> SETENV Editor Extras:Tools/MEmacs
  36.  
  37. creates the environment variable Editor That can be used with the MORE
  38. utility. This specifies the editor as MEmacs, located in the Tools drawer of
  39. EXTRAS:. The variable Editor is available in any Shell.
  40.  
  41. Example 2:
  42.  
  43. 1> SETENV Editor C:ED
  44.  
  45. same as above, only the editor specified is ED.
  46.  
  47. 1> ECHO $Editor
  48. C:ED
  49.  
  50. See also: GETENV, UNSETENV
  51.